# 请求网址:http://192.168.40.137:8080/wx/auth/login
# 请求方法:POST
# 请求头：
# Content-Type: application/json;charset=utf-8
# 请求体：
# {"username":"user123","password":"user123"}
# 返回数据：

#导包
import requests
#发送接口请求
resp =requests.post(url="http://192.168.40.137:8080/wx/auth/login",
                    headers={"Content-Type":"application/json;charset=utf-8"},
                    json={"username":"user123","password":"user123"})
#查看响应结果
print(resp.json())
print(resp.text)
print(resp.status_code)
print(resp.url)
print(resp.encoding)
print(resp.headersc)